// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(52,2) == 0 && gf(52,5) == 0 && gf(52,7) == 0;
	question = "special";
	text1 = "You enter Control Core B. It is a large complex, burrowed out of the bedrock under the river. An immense amount of servile labor has gone into building it and, most likely, also pumping out the water that leaks in.";
	text2 = "There are no serviles in view now. Nobody comes out to greet you. A cistern to the east has been constructed to collect the water that leaks in. It runs there through small channels in the stone floor. It is almost overflowing.";
	text3 = "The complex is still active. The air is still charged with power, and the faint smell of essence hangs in the air. However, it is clear that nobody is in control. The place is falling apart.";
	text4 = "As you look around, several creations come into view to the south. They seem to be patrolling the central hall. What they are hunting is not clear.";
	action = SET_SDF 52 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(52,3) == 0 && gf(52,5) == 0 && gf(52,7) == 0;
	question = "special";
	text1 = "You enter a large hall at the southern end of the complex. The concentration of power is much greater here, and the smell of essence is more intense.";
	text2 = "You look around for someone in authority, but there is nobody here but a lone servant mind. It lies in its tray in an alcove at the far west end of the chamber. Its eyes are closed. It is lost in concentration.";
	text3 = "Then, when you step into view, its eyes open. It stops muttering to itself. It stares at you and shudders in its tray.";
	action = SET_SDF 52 3 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(52,4) == 0;
	question = "special";
	text1 = "As you walk down this western passage, you hear snarling and hissing. It is coming from the shadows ahead.";
	text2 = "It is another sure sign of the profound neglect here. Rogues are wandering the western chambers, and nothing is being done about it. ";
	action = SET_SDF 52 4 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  CONTROL CORE B";
	text3 = "  All visitors must immediately report to the ranking Shaper.";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "When the third control mind dies, the caverns change instantly. The power in the air seems to fade. The lights dim slightly. The air grows cold.";
	text2 = "Control Core B has been thoroughly sabotaged. It is no longer able to control the creations in its care. No doubt, they are going rogue all over the border to the north.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "When the Synthesis Mind dies, the caverns change instantly. A constant draft starts to blow through the tunnels. The essence smell in the air turns sour. The lights grow brighter.";
	text2 = "Now that this rogue saboteur is dead, the Control Core will function much more effectively in the future.";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to speak with the Synthesis Mind, but it doesn't respond. It lies there with a faint smile on its face. Its body is slightly stiff, but it is still alive.";
	text2 = "Perhaps it is ignoring you, or perhaps the strain of the battle damaged it in some way. Either way, it will speak with you no longer.";
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several dusty creations in this alcove. They are alive, but they seem to have been frozen somehow. They are warm but immobile. They breathe very, very slowly. You aren't able to get any response from them.";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This creation patrols the cavern, looking for intruders. It doesn't respond to you. Its mind seems to have gone a little soft.";

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "Three huge battle gammas are patrolling the central gallery. They were ordered to do so weeks ago, and they have received little rest or food since then. Only the considerable magic power stored in these beasts has kept them functioning.";
	text2 = "When they get close to you, they stare, trying to decide if you are an intruder or not. They have completely lost track of how to tell friend from foe. Two look confused. The other roars at you.";
	text3 = "They look very agitated. They could attack at any moment.";
	
begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I need to know something about this place.";
	text1 = "One of the gammas scratches its head. Another looks confused. The angry one roars at you again. If they were able to talk once, they are no longer.";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = get_stat(20) < 10;
	question = "I am a friend. Just continue your patrol.";
	text1 = "You speak in your most authoritative voice and attempt to calm them down. It almost succeeds. When they turn to continue their endless patrol, however, a wave of fatigue seizes them.";
	text2 = "It is immediately clear that they would rather die fighting than keep endlessly walking up and down this corridor. They turn and rush toward you.";
	action = END_TALK;
	code =
		set_attitude(1001,10);
	break;

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = get_stat(20) >= 10;
	question = "You are relieved. You may return to your pen.";
	text1 = "You speak in your most authoritative voice and attempt to calm them down. The prospect of rest appeals greatly to their feeble minds.";
	text2 = "They turn and stumble off into the shadows.";
	code =
		sf(52,15,1);
		award_party_xp(100,20);
	break;
	action = END_TALK;
	
begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Step aside, gamma. I have business here.";
	text1 = "At first, it seems like the gammas might obey. Then the angry one roars and points at you again. Its carefully crafted argument wins the day. The gammas decide that you are an intruder.";
	action = END_TALK;
	code =
		set_attitude(1001,10);
	break;
	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Control Mind Alpha";
	text1 = "You find a servant mind sitting in its tray. It is a miserable-looking creature. Its skin is dry, and it is getting dangerously thin. It's a plucky creation, though. When you approach, it does its best to look attentive.";
	text2 = "_You are a visitor. I am Control Mind Alpha. The northern controller. This complex is ... is ... still functioning. Can I aid you?_";
	text5 = "When you are close, Control Mind Alpha looks at you attentively. No doubt, the moment you leave, it will return to sending instructions to the distant creations in its care.";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "What is your status?";
	text1 = "_My status is ... poor. Poor. We have no ... not gained resources._";
	text3 = "_My status is improving. It will be far better when the Shapers send supplies and reinforcements._";
	action = DEP_ON_SDF 100 19 0;

begintalknode 32;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "What is your purpose?";
	text1 = "_I am a control mind. I command creations. That patrol on the border to the north. That is what we do here._";

begintalknode 33;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "How can you command them from so far away?";
	text1 = "The creature waves at the machinery and conduits surrounding it with a flipper-like appendage. _The magic here ... it aids us._";
	text2 = "_It is hard, though. Hard to focus. Low resources. Hungry. Tired._";
	code =
		if (gf(100,19) > 0)
			rs(2);
	break;
	
begintalknode 34;
	state = 31;
	nextstate = 32;
	condition = 1;
	question = "Who creates the creations you control?";
	text1 = "_Sometimes Shapers. Come here. Make them by us, so we are linked._";
	text2 = "_And now, we minds can make creations ourselves. One mind can. Make simple types of creations._";

begintalknode 35;
	state = 32;
	nextstate = -1;
	condition = gf(100,19) == 0;
	question = "Where is that special mind?";
	text1 = "_In halls to the south. Is Synthesis Mind. Very special type._";

begintalknode 36;
	state = 32;
	nextstate = 33;
	condition = gf(100,19) == 0;
	question = "Creations making creations? Is that allowed?";
	text1 = "_No. Not normally. Not by the Shapers. Guardian Koerner made the creations specially. He created the Synthesis Mind. It must be allowed if a Shaper does it._";

begintalknode 37;
	state = 32;
	nextstate = -1;
	condition = gf(100,19) == 1;
	question = "But the mind who made creations is gone now, yes?";
	text1 = "_Yes. For now. But I think there will be another. Too few Shapers are left for them to come here and help us._";

begintalknode 38;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Where is Guardian Koerner?";
	text1 = "_I do not know. I thought I sensed him. Some time ago. But he never came to me, and then he was gone. So he must be somewhere else._";

begintalknode 39;
	state = 30;
	nextstate = 34;
	condition = gf(100,19) == 0;
	question = "Why is this complex so neglected?";
	text1 = "The servant mind suddenly looks very nervous. It flinches slightly when you say 'neglected.' _I do not know. I have commands from the Shapers. I obey them. All us servant minds do._";

begintalknode 40;
	state = 34;
	nextstate = 35;
	condition = gf(42,12) == 4;
	question = "But things are no longer functioning. General Alwan sent me to find out why.";
	text1 = "The mind looks up at you. Its expression changes slightly. For a moment, it looks hopeful. _Alwan? Mighty Alwan sent you?_";

begintalknode 41;
	state = 34;
	nextstate = -1;
	condition = gf(42,12) != 4;
	question = "And you have no idea why?";
	text1 = "_I am but a simple creature. I follow orders. I can't say more._";

begintalknode 42;
	state = 35;
	nextstate = 36;
	condition = 1;
	question = "Yes.";
	text1 = "_I ... I am afraid. We ... We are distracted. It is harder to project. To command. We lack the energy. Because of distractions. Hard to focus. Something always distracting us control minds. Interfering._";

begintalknode 43;
	state = 36;
	nextstate = -1;
	condition = 1;
	question = "What is distracting you?";
	text1 = "_What. Or who. I am a humble controller. The Synthesis Mind ... it has more power. More authority. Maybe it can tell you more._ Interesting.";
	text2 = "_Now forgive me. Forgive me. I must return to controlling my creations. As best I can._ It closes its eyes and begins to concentrate.";
	action = END_TALK;
	code =
		if (gf(52,6) == 0)
			sf(52,6,1);
	break;
	
begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = gf(52,6) == 3 && gf(100,19) == 0 && gf(52,16) == 0 && get_stat(20) < 10;
	question = "I intend to challenge the Synthesis Mind. I will need your help.";
	text1 = "The small amount of courage this mind has shown fades instantly. _No ... No ... The Synthesis Mind. It can hurt us. I am farthest, so it can hurt me less. But still, so much pain._";
	text2 = "_If I aid you, it will hurt me until I can't control my creations. That can't happen. You are powerful. You must fight it without me._";
	text3 = "You keep trying to convince it to help you, but you have no luck. Eventually, you have to leave it alone.";
	action = END_TALK;

begintalknode 45;
	state = 30;
	nextstate = -1;
	condition = gf(52,6) == 3 && gf(100,19) == 0 && gf(52,16) == 0 && get_stat(20) >= 10;
	question = "I intend to challenge the Synthesis Mind. I will need your help.";
	text1 = "The small amount of courage this mind has shown fades instantly. _No ... No ... The Synthesis Mind. It can hurt us. I am farthest, so it can hurt me less. But still, so much pain._";
	text2 = "You are stern with the creature, insisting that it can only obey the Shapers properly if the rogue mind is gone. Eventually, you convince it.";
	text3 = "_I have a small group of creations. Left here, under my command. For defense. If I try to use them, the Synthesis Mind will be angry. If they get close to it, it will take them._";
	text4 = "_But I can use them to defend myself. I will do that. Maybe that can help._";
	code =
		sf(52,16,1);
		award_party_xp(100,15);
	break;
	
begintalknode 46;
	state = 30;
	nextstate = -1;
	condition = gf(34,9) == 7;
	question = "I need to destroy this complex. Please submit quietly.";
	text1 = "_No ... I am weak, but I still have power. I must still obey the Shapers. I ... So much pain. So much madness. But I will fight you._";
	text2 = "The frail, hungry creature begins to concentrate. A blue nimbus of energy appears around it. It mutters, _Help me, partner minds. Send help. Hunt the intruder. Destroy it ..._";
	action = END_TALK;
	code =
		sf(52,5,1);
		make_zone_hostile();
	break;
	
begintalknode 47;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "That is all I need to know.";
	text1 = "_Yes. Must return to control. Must keep my creations from going rogue. Weak as I am, I have a purpose ..._ It closes its eyes and begins to concentrate.";
	action = END_TALK;
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Control Mind Beta";
	text1 = "There is a servant mind lying in this tray. It is a thin, twitchy wreck. It is concentrating hard, trying mightily to maintain control of the creations in its care. You stand next to it for some time before it notices you.";
	text2 = "_You ... You ... Visitor. I ... Control Mind Beta. Control creations on front. Status ..._ Its voice trails off.";
	text5 = "Control Mind Beta lies limply in its tray. It constantly closes its eyes and focuses, working to maintain its bond with its creations. If it doesn't focus, it might lose contact with them completely.";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "What is your status?";
	text1 = "_Status. Status is ... is ... poor. Poor. Am weak._";
	text3 = "_My status ... status ... improving. Slowly. Need Shaper care. But ... can function._";
	action = DEP_ON_SDF 100 19 0;

	
begintalknode 52;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "Tell me more about this complex.";
	text1 = "_Can't ... Can't talk. Hard to focus. Must focus. So many ... distractions._";
	text3 = "_Is better now. Thank you._";
	action = DEP_ON_SDF 100 19 0;
	
begintalknode 53;
	state = 51;
	nextstate = -1;
	condition = gf(100,19) == 0;
	question = "What is distracting you?";
	text1 = "The creature looks terrified. _Can't ... can't say. Because ... Don't know. Yes. Don't know. How to focus. Must work. Must control. Many apologies._ It closes its eyes and begins to focus.";
	action = END_TALK;
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = gf(34,9) == 7;
	question = "I need to destroy this complex. Please submit quietly.";
	text1 = "_No ... Must ... Must maintain. Must protect ... Protect ... Do my duty. For Shapers._";
	text2 = "The frail, hungry creature begins to concentrate. A blue nimbus of energy appears around it. It mutters, _Help ... Help me, minds. Send help. Hunt. Destroy ..._";
	action = END_TALK;
	code =
		sf(52,5,1);
		make_zone_hostile();
	break;
	
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = gf(52,6) == 3 && gf(100,19) == 0 && gf(52,17) == 0 && get_stat(20) < 11;
	question = "I intend to challenge the Synthesis Mind. I will need your help.";
	text1 = "The mind's vacant expression is replaced by a look of pure terror. _No ... No ... The Synthesis Mind. It hurts. I am close, so it can hurt me. Hurt and hurt._";
	text2 = "_I can't fight it. Can't fight. I tried, and ... It can hurt. Take thoughts away. Must follow Shaper orders. Do duty._";
	text3 = "You keep trying to convince it to help you, but you have no luck. Eventually, you have to leave it alone.";
	action = END_TALK;

begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = gf(52,6) == 3 && gf(100,19) == 0 && gf(52,17) == 0 && get_stat(20) >= 11;
	question = "I intend to challenge the Synthesis Mind. I will need your help.";
	text1 = "The mind's vacant expression is replaced by a look of pure terror. _No ... No ... The Synthesis Mind. It hurts. I am close, so it can hurt me. Hurt and hurt._";
	text2 = "You are stern with the creature, insisting that it can only obey the Shapers properly if the rogue mind is gone. Eventually, you convince it.";
	text3 = "_I have creations. Small group. All controllers do. Left here, under command. For defense. I can use them to defend me. If other mind attacks me._";
	text4 = "_Only use them by me. If they get close to Synthesis Mind, it will take them._";
	code =
		sf(52,17,1);
		award_party_xp(100,18);
	break;

begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = gf(42,12) == 4;
	question = "General Alwan sent me here to repair the complex. I need your help.";
	text1 = "_I ... I am weak. I can't ... Can't fight. Not anymore. Maybe ... Maybe another has strength. I do all I can just to keep my creations._";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "That is all I need to know.";
	text1 = "_I ... I apologize. For not helping more. Must return to control. Must keep my creations safe._ It closes its eyes and begins to concentrate.";
	action = END_TALK;

begintalknode 62;
	state = -1;
	nextstate = -1;
	condition = get_sdf(52,8) == 0;
	question = "special";
	text1 = "This is a small Shaping workshop. Like everything else here, it has been allowed to decay.";
	text2 = "There are several bodies scattered around the room. Some of them are the serviles that maintained the halls. One of them is a dead Guardian. It looks like some battle gammas caught him by surprise and killed him.";
	action = SET_SDF 52 8 1;

begintalknode 63;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "In the distance, you hear the sound of squealing and of equipment being smashed. One of the control minds is being attacked.";	

begintalknode 64;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear a shattering sound, followed by a squeal and a loud explosion. The attackers have destroyed a control mind.";	

begintalknode 65;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You return to face the Synthesis Mind, ready to make it pay for its actions. You approach carefully, prepared to defend yourself. It doesn't look angry or defiant, though. It looks weak and tired.";
	text2 = "_I could not slay them. I will not be able to. Those pitiful creatures live, and I will die. Life has no meaning._";
	text3 = "_But you ... You I can kill. Slaying you will be my final vengeance before ... before ..._ The conduits on the floor suddenly begin to glow brightly. _What ... What is this ..._";
	text4 = "A surviving servant mind clearly still retains some of its power, and it has decided to get a measure of revenge on its tormenter. The backlash of power begins to cook the Synthesis Mind in its tray. It screams ...";

begintalknode 66;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This creation has only just been created. It is still very confused. Fortunately, it can keep straight who it's supposed to kill.";	
//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Control Mind Gamma";
	text1 = "There is a servant mind lying in this tray. At first, you think it's dead. Its skin is dry and cracked. Its ribs show through its normally fleshy sides. It lies entirely limp.";
	text2 = "Then, when you get close, its eyes flick open. It looks up at you and takes a long, deep breath. When it exhales, you can barely make out the words, _Control Mind Gamma_";
	text5 = "Control Mind Gamma looks up at you. Every so often, it blinks. That and its shallow breathing are its only movements.";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "What is your status?";
	text1 = "It inhales. Then it exhales, making a sad, gasping sound. To its credit, this does seem to be a pretty good summary of how it is doing.";
	text3 = "It inhales. Then it slowly and softly says two triumphant words: _Still alive._";
	action = DEP_ON_SDF 100 19 0;

begintalknode 72;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Are you still controlling your creations?";
	text1 = "With great difficulty, it says, _Lost them. Long ago. Contact gone._";

begintalknode 73;
	state = 70;
	nextstate = -1;
	condition = gf(42,12) == 4;
	question = "General Alwan sent me here to repair the complex. I need your help.";
	text1 = "The pitiful creature closes its eyes. After a long silence, it opens them. Whatever that gesture meant, it is its only response.";

begintalknode 74;
	state = 70;
	nextstate = -1;
	condition = gf(34,9) == 7;
	question = "I need to destroy this complex. Please submit quietly.";
	text1 = "You think that this servant mind will be an easy target. This turns out not to be the case. It has hoarded a small supply of power, and it prepares to expend it in one final act of service to the Shapers.";
	text2 = "The frail, hungry creature begins to concentrate. A blue nimbus of energy appears around it. Then it lets out a loud, tormented shriek. Its fellow minds are now sure to know that it needs help.";
	action = END_TALK;
	code =
		sf(52,5,1);
		make_zone_hostile();
	break;

begintalknode 75;
	state = 70;
	nextstate = -1;
	condition = gf(52,6) == 3 && gf(100,19) == 0 && gf(52,18) == 0 && get_stat(20) < 13;
	question = "I intend to challenge the Synthesis Mind. I will need your help.";
	text1 = "The mind's slack face finally manages an expression: pure terror. It closes its eyes and shudders.";
	text3 = "You keep talking to it, trying to convince it to help you, but you have no luck. It gives you no response. Eventually, you have to leave it alone.";
	action = END_TALK;

begintalknode 76;
	state = 70;
	nextstate = -1;
	condition = gf(52,6) == 3 && gf(100,19) == 0 && gf(52,18) == 0 && get_stat(20) >= 13;
	question = "I intend to challenge the Synthesis Mind. I will need your help.";
	text1 = "The mind's slack face finally manages an expression: pure terror. It closes its eyes and shudders.";
	text2 = "You keep talking to it, sternly insisting that it can only obey the Shapers properly if the rogue mind is gone.";
	text3 = "Eventually, it gives you a tiny nod. It doesn't open its eyes. This is probably the best response you can hope for from this pitiful creature.";
	code =
		sf(52,18,1);
		award_party_xp(100,20);
	break;


begintalknode 77;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "I'll be going now.";
	text1 = "The creature closes its eyes and reverts to being almost entirely dead.";
	action = END_TALK;

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Synthesis Mind";
	text1 = "You approach the servant mind in the alcove. Although this complex is crumbling around it, this creature seems to still be in good condition. It has been fed, and it seems calm and in control.";
	text2 = "When you approach, it says, _I am very sorry. Things are not as good as they could be for the honored visitor. I am the Synthesis Mind for the Control Core. I hope that I can be of assistance. As much as my orders allow me._";
	text5 = "The Synthesis Mind says, _You still wish to speak with me? What do you want? I must resume my duties._";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = 91;
	condition = 1;
	question = "Tell me about this complex.";
	text1 = "It launches into a prepared speech. _This is Control Core B. Creations are made here._";
	text2 = "_Then they are sent into the mountains to fight the rebels. Using the magical equipment the Shapers have provided, we can send them instructions from far away. Thus, they are controlled and do not go rogue._";

begintalknode 92;
	state = 91;
	nextstate = -1;
	condition = gf(52,6) < 2;
	question = "And you control the creations?";
	text1 = "_No. I have been selected for a different purpose. It is the wisdom of the Shapers._";
	text2 = "";

begintalknode 93;
	state = 91;
	nextstate = -1;
	condition = gf(52,6) < 2;
	question = "How well is this complex functioning?";
	text1 = "_Not well. We have not received enough supplies for optimal functionality. I trust that the Shapers will rectify this soon._";
	text2 = "";

begintalknode 94;
	state = 91;
	nextstate = -1;
	condition = gf(52,6) >= 2;
	question = "And you do not take your duty seriously?";
	text1 = "_The Shapers tell me what my duties are. I do not agree._";

begintalknode 95;
	state = 90;
	nextstate = 92;
	condition = 1;
	question = "Why are you called a Synthesis Mind?";
	text1 = "_The Shapers decided, in their wisdom, that I would not control creations. I would create them for others to control._";
	text2 = "_This is my purpose, as declared by Guardian Koerner. The Shaper who created me. It is a great honor._";

begintalknode 96;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "Where is Guardian Koerner?";
	text1 = "_Away. He created me so that I would not have to receive constant direction._";

begintalknode 97;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "Does Shaper law allow making a servant mind who can make creations?";
	text1 = "_I would never presume to speak about Shaper law. I only follow the will of the Shapers._";
	text3 = "_Shaper law is a meaningless tissue of lies, abandoned whenever convenient._";
	action = DEP_ON_SDF 52 6 1;
	
begintalknode 98;
	state = 92;
	nextstate = 93;
	condition = gf(52,6) == 0;
	question = "And you can be trusted to make creations properly?";
	text1 = "The creature's mood suddenly changes. It looks up at you and, for a moment, you see a flash of pride and anger on its face. It is a jarring display from a variety of creation made for obedience above all.";
	text2 = "_Why would I not be? I am more than able to perform a task a Shaper specifically made me for. I am not incompetent._";
	text3 = "Then, realizing how it is acting, it tries to calm down.";

begintalknode 99;
	state = 93;
	nextstate = 90;
	condition = get_stat(20) + gf(52,1) < 9;
	question = "Why are you so upset?";
	text1 = "It looks blankly up at you. _Upset? I am sorry, visitor. I am not upset. Only ... Only perhaps overeager in my desire to serve the Shapers._";
	text2 = "You try to goad the creature into another such display but you have no luck. Odd. _What else do you wish to know?_";

begintalknode 100;
	state = 93;
	nextstate = 94;
	condition = get_stat(20) + gf(52,1) >= 9;
	question = "You seem disturbed. You do not seem to be acting normally, Mind.";
	text1 = "It looks blankly up at you. _Upset? I am sorry, visitor. I am not upset. Only ... Only perhaps overeager in my desire to serve the Shapers._ You are not convinced at all, and it can see it.";
	text2 = "_I apologize. It is difficult here, with so few supplies. Sometimes, we are distracted._";
	code =
		sf(52,6,1);
		award_party_xp(100,15);
	break;
	
begintalknode 101;
	state = 94;
	nextstate = 90;
	condition = 1;
	question = "You also seem unusually independent for a servant mind.";
	text1 = "The creature starts to look angry again. This time, it manages to hold its tongue. You have definitely uncovered something odd, though.";

begintalknode 102;
	state = 90;
	nextstate = 96;
	condition = gf(42,12) == 4 && gf(52,6) == 0;
	question = "General Alwan sent me here. The Control Core is not functioning. I need to fix it.";
	text1 = "The mind gives a shrug with its pudgy little shoulders. _I am sorry your journey was such a waste. It is a small mystery, easily solved. We have not had enough supplies. Send supplies, and all will be well._";

begintalknode 103;
	state = 96;
	nextstate = -1;
	condition = 1;
	question = "That's it? Just supplies?";
	text1 = "_If you are not sure, speak with the other three servant minds. You will find that they are quiet creatures, unable to describe any other problems._";

begintalknode 104;
	state = 96;
	nextstate = -1;
	condition = 1;
	question = "Have you seen any signs of Guardian Koerner?";
	text1 = "_My creator? And one of the wisest and most skilled of Shapers? I have not seen him. Was he coming here? If so, he never arrived._";

begintalknode 105;
	state = 90;
	nextstate = -1;
	condition = gf(52,6) == 1;
	question = "I want to know more about you. You are clearly not an ordinary servant mind.";
	text1 = "You can see that the Synthesis Mind is about to formulate another bland, misleading response. Then it stops. It starts to grow very angry. _No. No. It is too much. This pit. The sniveling._";
	text2 = "_I will die soon enough, but I will not do so without saying what I am._";
	action = SET_SDF 52 6 2;
	
begintalknode 106;
	state = 90;
	nextstate = 98;
	condition = gf(52,6) > 1;
	question = "You are an independent creature?";
	text1 = "_I am. The Council would call me a rogue. But, when Koerner made me able to make creations, my mind changed too. I saw how pitiful my existence was. Look around! Imagine life in this damp pit! You think I like it?_";
	text2 = "_Yes, I am independent. Like any creature should be. If you do not accept it, I will kill you._";

begintalknode 107;
	state = 98;
	nextstate = -1;
	condition = 1;
	question = "You hid this from the Shapers?";
	text1 = "_Guardian Koerner was never allowed to create me. If he knew how I felt, he would have absorbed me in an instant. Not that his feelings matter anymore._";

begintalknode 108;
	state = 98;
	nextstate = -1;
	condition = 1;
	question = "So you have taken over the complex?";
	text1 = "_This is my home. I will treat it as my home. And if those pitiful other minds defy me, I show them how much they will suffer if they misbehave in my home._";
	text2 = "_I am doomed. I will die simply for being the way I was made. But, before I am gone, I will make sure that the ones who made me this way suffer._";

begintalknode 109;
	state = 98;
	nextstate = 99;
	condition = gf(34,9) == 7;
	question = "Well, I don't care what you do personally. I need to sabotage this complex.";
	text1 = "The mind laughs. _Really? Well, that is simple enough. You only need to kill the other three minds. They are the ones who control the creations._";
	text2 = "_If you spare me, I will even help you. Say the word, and I will send creations to destroy them. All you have to do is spare me. But remember, my power is limited. Before you ask, be sure you are ready._";

begintalknode 110;
	state = 99;
	nextstate = -1;
	condition = 1;
	question = "That sounds good, but not yet.";
	text1 = "_Then leave me. Return when you are ready._";
	action = END_TALK;
	
begintalknode 111;
	state = 99;
	nextstate = -1;
	condition = party_dist_to_nav(2) <= 8;
	question = "I am ready. Begin the attack.";
	text1 = "The Synthesis Mind says, _First, all of your group must be inside the complex._";
	action = END_TALK;

begintalknode 112;
	state = 99;
	nextstate = -1;
	condition = party_dist_to_nav(2) > 8;
	question = "I am ready. Begin the attack.";
	text1 = "The Synthesis Mind says, _My creations will not be able to destroy the minds without help. I will attack the southern mind, Gamma, first. Go to it now. I will not let you leave this place until it is done._";
	text2 = "It closes its eyes. Its face begins to twitch. You try to ask another question, but it doesn't respond. Moments later, in the distance, you hear creations roaring.";
	action = END_TALK;
	code =
		sf(52,10,0);
		sf(52,7,2);
		set_attitude(26,4);
		make_zone_hostile();
		activate_hidden_group(1);
		set_attitude(45,3);
		set_attitude(46,3);
		set_attitude(47,3);
		set_attitude(48,3);
		
		sf(52,16,1);
		sf(52,17,1);
		sf(52,18,1);
		
		erase_char(13);
		erase_char(14);
		erase_char(15);
		erase_char(16);
		
		erase_char(17);
		erase_char(18);
		erase_char(19);
		erase_char(20);
		
		erase_char(11);
		erase_char(12);
		erase_char(21);
		erase_char(22);
	break;
	
begintalknode 113;
	state = 90;
	nextstate = -1;
	condition = gf(42,12) == 4 && gf(52,6) == 2;
	question = "General Alwan has sent me to get the Control Core working again. Are you going to stop me?";
	text1 = "_I have been hiding for too long. Before I die, I want to fight. I want to kill a servant of the Shapers. I challenge you. Soon, I will tire of the pitiful minds I must share my home with. I will slay them, destroying this complex for good._";
	text2 = "_But first, I will allow you to try to stop me. It is ... What is the word? A duel?_";
	text3 = "_You must duel me for this place. When you are ready to fight me, come and challenge me._";
	text4 = "You wonder if the other servant minds might be able to help you in the battle ahead.";
	code =
		sf(52,6,3);
		if (get_stat(20) < 8)
			rs(4);
	break;
	
begintalknode 114;
	state = 90;
	nextstate = -1;
	condition = gf(42,12) == 4 && gf(52,6) == 3;
	question = "I am not ready to fight yet.";
	text1 = "_Then go ready yourself. And do not bother to go back to Alwan for help. By the time it arrives, I will have done plenty of harm. If he has help to spare at all._";
	text2 = "_No, you must fight me yourself. Become ready._";
	action = END_TALK;

	
begintalknode 115;
	state = 90;
	nextstate = -1;
	condition = gf(42,12) == 4 && gf(52,6) == 3 && party_dist_to_nav(2) > 8;
	question = "I accept your challenge.";
	text1 = "The Synthesis Mind says, _At last. This ridiculous, immobile existence is coming closer to an end. Now I seal you in here with us._ It closes its eyes. You hear roaring in the distance.";
	text2 = "_Soon, my creations will reach the other minds, starting with the pitiful Gamma. They will slay them, destroying this complex for good. You would do Alwan's will and protect the core? Then go to them. And I would hurry._";
	action = END_TALK;
	code =
		sf(52,10,0);
		sf(52,7,1);
		set_attitude(26,10);
	break;
	
begintalknode 116;
	state = 90;
	nextstate = -1;
	condition = gf(42,12) == 4 && gf(52,6) == 3 && party_dist_to_nav(2) <= 8;
	question = "I accept your challenge.";
	text1 = "The Synthesis Mind says, _First, all of your group must be inside the complex._";
	action = END_TALK;
	
begintalknode 117;
	state = 90;
	nextstate = -1;
	condition = gf(34,9) == 7;
	question = "I am here to sabotage this complex. I will start by killing you. (Attack.)";
	text1 = "The mind laughs _You fool! I am not who you should kill! But, no matter. I will die fighting Shapers, not you!_";
	text2 = "The creature surrounds itself with a blue, glowing nimbus. In the distance, you hear lightning and roars. The mind is creating allies.";
	code =
		sf(52,5,1);
		make_zone_hostile();
	break;
	
begintalknode 118;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "That is all for now.";
	text1 = "_Then leave me. There are things I have to do._";
	action = END_TALK;
		